package com.diy.sigmund.diycommon.designpatterns.strategy.enum1;

/**
 * pizza送货策略
 *
 * @author ylm-sigmund
 * @since 2021/8/27 11:30
 */
public enum PizzaDeliveryStrategy {
    EXPRESS {
        @Override
        public void deliver(Pizza pz) {

        }
    },
    NORMAL {
        @Override
        public void deliver(Pizza pz) {
            System.out.println("Pizza will be delivered in normal mode");
        }
    };

    public abstract void deliver(Pizza pz);

    PizzaDeliveryStrategy() {
    }
}
